package com.boomsecret.juc.collections;

import java.util.concurrent.LinkedBlockingQueue;

/**
 * @author wangjinliang on 2019/1/23.
 */
public class LinkedBlockingQueueDemo {
    public static void main(String[] args) {
        LinkedBlockingQueue<String> linkedBlockingQueue = new LinkedBlockingQueue<>(2);

        linkedBlockingQueue.add("cc");

        for (String value : linkedBlockingQueue) {
            System.out.println(value);
        }
        System.out.println("------------");

        System.out.println("main end");
    }
}